/* Global includes for the scheduling simulator 

   Includes structs and global variables 
*/

#include <errno.h>
#define MAXVAL 2147483647  /* max value of long */

long int clock_time; /* global time for simulation */
int fd;          /* input source fd */

struct proc_info
{
  long int arrival_time;
  long int time_remaining;
  long int time_to_next_io;
  long pid;
  long int ios_remaining;
  long int io_interval;
  long int last_runtime;
  int priority_level;
  long int finish_time;
};

enum event_type {
  NEW_PROCESS = 4,
  RESUME_PROCESS = 5,
  KILL_PROCESS = 0,
  START_IO = 3,
  END_IO = 2,
  SCHEDULE = 1,
  END = 6
};
  
